import request from '@/utils/request'

export function getNewsList(currentPage,size) {
    const data={
        currentPage,
        size
    }
    return request({
        url: '/news/findNews',
        method: 'post',
        data:data
    })
}

export function getByNewsId(id) {
    return request({
        url: '/news/getByNewsId',
        method: 'get',
        params:{id}
    })
}
